package com.zjuee.base.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 基础 domain 实体类
 *
 * @author wu liang
 * @since 1.0
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Description implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键，自增ID
     */
    @TableId(type = IdType.AUTO)
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @NotNull(message = "id can't be empty")
    private Long id;

//    /**
//     * 描述信息
//     */
//    @JsonInclude(JsonInclude.Include.NON_NULL)
//    private String description;
//
//    @JsonInclude(JsonInclude.Include.NON_NULL)
//    @JsonFormat(pattern = Common.DATE_FORMAT, timezone = Common.TIMEZONE)
//    private Date createTime;
//
//    @JsonInclude(JsonInclude.Include.NON_NULL)
//    @JsonFormat(pattern = Common.DATE_FORMAT, timezone = Common.TIMEZONE)
//    private Date updateTime;

//    /**
//     * 逻辑删除标识
//     * 1：删除
//     * 0：未删除
//     */
//    @TableLogic
//    @TableField(select = false)
//    @JsonInclude(JsonInclude.Include.NON_DEFAULT)
//    private Integer deleted;
}
